Added C-style API exports instead of relying on horrible virtual function tables
Fixed a bug with item insertation