Added licensing at the code. Main lib added.