CHANGED: Surface class uses now file like objects instead creating files