Refactoring template, creating namespace

Signed-off-by: RedChrome <redchrome@gmx.de>