Added basic doc and unit tests