Removed unneeded codes and files. Added comments wherever needed.