Rearranged some code. Adapted web interface to Storm Simulator.