Settings file #4

Added settings support. Solves issue #4.