Added some notes. Cleared away useless code.