Changes in the 'Settings'/'Preferences'

Refactored the int parsing into Utils.scala
Now the preferences can be parsed into the 'Preferences'
case class for type safety.