Added UI handler. Simulation algorithm left.

Added features:
input constraint
parameter check
'enter' to execute
friendly error message