added time sync functionality
packets are synced when connected to internet
improved documentation style