Bugfix: also create accessor proc if 3 args (incl default) are given.
Make test and 'normal' (read) versions of main shell script.
Cleaned up code.