Linux implementation now compiles and runs. Renders incorrectly