Updated makefiles and main.c for command library