Made IO abstract and functions static
Initial commit of Cache class.