Moved utilfuncs to libraries, added simple annotations lib