Added docs. Fixed #9