refactoring into file; licence; template
[ok] fix syntax