added docs and licence info