Demo takes errors into account and library creates unique name files. Cl...

...oses #36