cleaned up comments and removed debugging io.