Added comments to libcharm.py