Updated pom, added interface for dot, refactored