plugins and application initialization changed; demos rewrited according to changed initialization function; some bugs are fixed;