added docs & mindor cleanup

Added Documentation and cleaned up some remnants from debugging