fixed minor errors
removed puts
fixed error