code optimization/coding style adaption/fixes/updated help menu