Unfied variable declarations, again
Capitalize "countDirections" as it is used as enum
Put public method exports at eht end of "classes"