Added docs checking (closes #18).
Fixed tests.