initial code upload

routines for carriage movement - incomplete code