Adding *.uvopt to .gitignore
Converting code from the compass to be a library and clean up main.c