Implement a timeout if there is no response from the controller.

Without this a code would hang if no controller was connected.
Comments!
Remove unnecessary configuration header file.
Add licensing information.