Added the cAPI code!

Man that took a while! Hope this helps with capes!