Prails stabilization.

Changed private hanlder.
Refactor to tokenizer.
Added error displaying.
Fixed contraint manager.
Better view handler.