Added (a lots of) comments to code; unused methods cleanup

1 job for master in 22 seconds (queued for 16 seconds)