Minor changes

GCD, cast, comments...