loopRate.sleep() added to main()