Did some cleanup. Changed main to print function names.