Added 'open'-method.
Added modes (currently only "r" and "w").
Added write method which enabled the class to write files.
Added close method that closes write-pointer.
Fixed bug when reading files and pointers werent closed.