Testing initial read code, fixed minor compiler errors