More Julia conversion and formatting
Convert model selection code to julia