refactoring done, tool now saves to persistent data
all functions have been cleaned up
tool is working in maya2012