finished up all testing stuff, added comments to code