New version of freeDive

Rewritten from latest version on kdmc