refactoring cleanfile()
moved all the file related functions to class CIDR

updated tests
removed an already commented test line

add child used to throw type error, now it’s recursive!
trade memory for speed, store binaries in class

previously was allowing the bit mask to generate every time it was
called - pre-optimisation, but meh.
added some todo's