created docs and usage examples, fixed license header