Removed main function from library
Followed advises from golint