Removed some of the redundant files and added explanatory comments to .ts files