fixed warnings from the Microsoft C compiler. thanks Edwin Cleton for the report.
various coding style fixes.