Added error checking and update packaging per go specs