minor refactoring, added new simulation class

Hi Milinda, 
I made some changes to your code. Please review. 

Removed the static main method from DFAEngine class and added a separate DFASimulator class with a main method. 
When packaging the code, Simulator class will be the access point.

-Tharindu.