cleaning up unneccesary imports; ensuring bufferedReader is closed