Resolved memory leak, and single char arguments issue