renamed methods
added methods
added prototype for reading files and sharing new methods
refactored errors