reformated the code, and wrote comments
deleted the unnecessary files