Documentation and some minor changes in methods.