added custom julian selection

plus bug fixes
cleaner code
code cleanup
prettier code
added more explanation