Added 'function annotations' mode to support function dependencies; fixes #24