Created Makefile.
Added more error handling and now uses the new ntp register layout.