Revised visiblity to public and reworked readFromFile