Made the entire event system. First full version is now done! From now on, develop only in branches for clarity of source.