added save and close functionality, coloring api and polygon boolean operations