Refactoring, fixed memory leak, updated pod spec to v2.0.0.