added pseudocode to parse arguments