-Fixed some subtle read-related bugs
-Removed extraneous functions