Syntax changes

- added author header
- removed unused chunks of code
- reorganized code structure as specified by blue comments