Refactoring, added initial version of geodigger script.