file io

add module with often used functions and function pointers, use that module in already established code and add file io to intset.
<%=bits%> looks a bit like it's left over from copying from a template...?