Changed printf to printw for ncurses to fix display issue using ssh

Although the robot arm did work with the original code no information was displayed except the key presses. May have been because I was connected via ssh. Commit fixes this by using the ncurses standard printw.

Set the return code to 1 when there is an error.
Added a message on exit pointing to the original source on github.