julia version: unfinished, basic structure
julia version: working
julia version: test script
remove debug code