bug fixes, new features, code cleanup and optimization

disabled buttons until useful; separated wx classes from pure Python
classes