added function to convert from object ID to integer index
added new angle type to annotation