added license text and doco