Fixed an issue with ~ operator not resulting in a numeric.
Changed some debugging.
More notes