Updated read methods, and added close method to FileInputStream