Changed Value to be a floating point number
Added MessageHandler func.
This func now receives all packets and is responsible for writing them to each file.
Refactoring:
Changed variable name.