Added support for input folders
Removed necessary files magic to export variables from subshell, by removing the subshell
Removed expr and replaced with let-bash command
Added support for templates