Console.writelines removed, comments cleaned up