Documentation and some bugs.