Added all tests (unstable). Added documentation