Added html file output

Fixed some problems

Fixed more things