Problem with hashing was a rounding error

Moving matlab sim to object-oriented
> For consistency
> To remove hacks/kludges
> For ease of maintenance
(Approx 2 hours of work)