Mainly documentation added to Foliation class.

Also, some clean-up was done on the Foliation class, which affected
other classes.

Now the constants.py, mymath.py and myexception.py files are combined in
base.py and only stuff that is used at multiple places should be in base.py.