redused direct dependency on class MagicParameters such as debug and readFile
removes direct dependency between Main and MagicParameters