refactored to comply with Go 1.0. Mainly throwing out container/vector,
switching use of os.error to errors package and random small changes.
Modified some tests.
gofmt