Adding documentation and writing html