Finished formatting

Finished html format, reordered logic so default is plain, changed
plaint to console