more convention-compliance
whitespace tidying
windowsize is a constant
whitespace tweaking