Implimenting read and attempting to figure out wierd crashes on os x
still not workign on os x