initialize document every time a merge is attempted (not doing so leads to unpredictable behaviour) + enhance readme and drop the possibility of caching the templates + add a main class (in test) to show usage