add comments
enable Main class to do model training or show gui based on program arguments, and rename data files
fix a small bug: make sure that substitutionframe is always on top when it is set visible