added license and some documentation