Added helper function for getting settings

Closes #22