Port demos to gsl-shell language
Fix file reader to close the file when finished