Fixed build.xml, added comments, and made sure most things worked correctly