Sort code and put it into final template

Still not fully working
duration and dt use templating
Bug fix (ending parenthesis) and boolean condition initialisation
Float literal suffix
Renderscript kernel for threaded updates
No need for _vectorisation_idx variable