Fixed warnings for more stringent compilation settings. Added various small helpers.
Minor warning fix + removed unused function parameter.