added some examples, few code fixes, added balance resource

moved test folder