improved the makefile slightly
added set/get commands, added error checking