fixed typos in comments
fixed lcm and gcd returning negative value when applied to a single negative argument, issue #51