added comments and organized files