Added build and run scripts, fixed code truncation.