Moved functions for manipulating types into a new file and revised int()...

..., true and false.