code cleanup
added a method to version to obtain the increment type
Working with the flow