Added more details to pom; Added new test cases, handling of nested tables; refactoring state machine into their own classes for better code org.