work on apidocs
rewritten some parts to new api
change on callbacks in CG.Button
generated libs