comments added, class fixed, style fixed

a little overhauled