Added documentation and changed licence to MIT