implements scripting through functions

Have implemented the scripting functions for point, circle, line and ellipse.