commented main sub-functions
released write mode to files
removed test code
wip commit
included start commands in main file
modified let statements to fit new cl-cuda