some changes to load_dir and sew
changes during meeting 2014-02-18;  tidying and refactoring of sew() function;  tidying .Rhtml example