Added comments. Removed unused namespaces.