Restructure

Moved states and transitions to root and made them public;
Restructure

Extracted basic behaviours classes into separate files and namespace;