Changed lots of stuf

added resoures
and fileio