relocated keplerian functions
added result parameter to functions