Clean up minor code formatting
Add max fps limit