added language choice (java or cpp) to template script