cLeaned up code, added comments, and specified standards in file info sections.