syntax cleanup
updating references
cleanup of julian function