split script into functions (make source-able .sh file)
add template_make (yay!)
add makefiles for c++ and latex