indentations
minor fixes
fixed reset issue
fixed html errors