Added Documentation and a removed some commented out code