Fixing rectangular texture problem.
adding Levelsets - not working yet,
moving popup button functionality to its own class - not used yet.
Removing unused and adding documentation