Corrected/added 'flatten' function attribute. Improved 'inline''s docs.