added basic classes, tests and documents
test fixes