Fix bug where the autopilot state was unresponsive to input
Clean up actor class and try out some JSDoc