updated calcgrade to check for gpg

Also included print color text functions.