Tried to add ic2 and bc protection. Added BC api and some of its source code.