Figured out how to sync go routines
Added an example directory, also runs tests