Code commented and all unnecessary prints removed.