State mean initialization
Separate means for each state on initialization
Fixing file I/O