Added a first draft of makefile and modified main to use the component library