Fixed parseArgs, tested