Large overhaul of all code essentially porting it to Rhino-python