fix POC computation
fix memory access out of image metadata bounds
added missing function declaration
accelerated functions can now be turned off (also renamed 'lowlevel' as 'acceleration')
assign stable IDs to public enums