added License
little refactoring, work on documentation