Clean up. Add command line parser.

object creation and linking now in makefile