currentState Implementation

Tested + works fine from issue #24.

I changed the name from currentState() to getCurrentState() which seemed like a better name - unless anyone has objections?