More docblock stuff.
More @todo items, possible bugs.
Add type conversion to constants, because IDE cannot know for sure they are integer. This might be controversial.