Update thumbsim.hpp

Uploading Lupo's new .hpp file. He has fixed some of the error I mentioned to you. This has not been tested.