Comments, Readme and test functions expanded.