Removed static and shared libraries, defaulting to whatever cmake default
Changed read/write functions names
changed return type