Refactor public functions

Remove public functions (Parser.getParameterByFlag,
Parser.putDefaults, Parser.getUnflaggedParameter),
include Parser.putDefaults in Parser.parse, change
API tests