Revert "Implementert alt bortsett fra close()"

This reverts commit 9b75e18025827f223abe7600ed09337aaa3b057b.
Revert "Revert "Implementert alt bortsett fra close()""

This reverts commit 52a79486c953faf17c01aca05ed0227fbc6242ed.