Updates for Julia 0.4
formatting tweaks
fix last warnings