Added html file output

Fixed some problems