Refactor code
fix bug in main.py
fix bugs while refactoring, and fix a OS X bug in main.py
modify some settings
fix bug in time point selection
Merge pull request #14 from sealhuang/fix-gui-action

Refactor the structure, including add 4D data support, reduce complex signal connection, etc.