Merge pull request #2 from zcht/master

update from master
update for settings page for display and saving

using array and dynamic variable to simplify this a bit
Merge pull request #5 from shibuya246/master

updated for settings page