Added more doc strings and removed some commented code.