cleaned code by extracting general geometry functionality into lib
cleaned code. Export to Geometry lib and removed unnecessary stuff