Fixed Makefiles and produced a working example.