refactors logging, adds comments, and revises names & formatting in all submitted code