added replace() method
changed addFile() to allow multiple subdirs
added rain template engine; some more changes