improvements and additions (added settings page)

I have made a number of improvements and additions in the following commits. 

See the individual commit comments.