moved logging into main.go and deleted logger.go