added initial docs
added version with exceptions