Added cgrlib.py for common CGR-101 functions