Develop logic

Added return type decoration for transition invocation;
Fix code
Develop logic

Merged core methods with api;