cleans up all syntax, adds comments