fixed indentation, removed unnecessary lines, fixed documentation