Feature/preferences

fixes #38