compilation fixes
basic implementation of rendering

there are a bunch of formatting issues, but this is at least a rough
start
test script