Update initparam.py

added some comments to each function