fixed line drawing
removed unnecessary print statements
added more whitespace for readability
change mouse position variables to float
wrote more reference