refactoring and added NTP code to xbee project, sourced the vendor Time library