created an constructor for FileHandler
changed visability of methods