fixed some coding standards issues as detected by code sniffer