Re-formatted code and clarified flow of program via method headers.