Fixed bugs, examples added

Method fixes;
Added 10 examples;