Cleaned up gobot.go file, split off into libs