fix issue where file isnt written
write footer only if asked
some tests (failing) to make sure we respect absolute/relative state when doing abs_arcs and abs_moves

make sure that if we are in absolute mode, we return to absolute mode

pep8

change up some of the tests so that it is easier to check for expected command. Also initialize printer in relative and avoid excess G90/G91 commands.
Merge branch 'master' of github.com:jminardi/mecode into abs_move

Conflicts:
	mecode/main.py