added gitignore
added tests and ran code through go fmt