initial commit of basic template
basic functionality working
several corrections