made parsing args for pear-tool, made statuses of errors for pear-tool, cosmetic fixing too