fixed compile script
added compile run script
added rudimentary resize function