adding a README
adding test functions to Makefile
removing print statements and main func from segment.go
adding a very simple test