refactored
methods added
read files