Implemented main functionality in the template system.
Added an example project/script.