Simple arg parsing, warnings fixes.