Added file decomposition, input from file, browser supporting.
Structures encapsulated, formatter added.