Added some inline comments, created a build, cleaned up some code.