Various minor modifications in the "scriptin like" classes

Not really a clean work. Quick and dirty solutions for the calculation
I am making. However, they also teach something.
Minor stuff