More AGI functions

Also update documentation making it more consistant for functions and
address pylint feedback.

Refactor unittests on how they pass args and remove duplicate code.

Change-Id: I0ddc5818a79fac7405fe0ca24ff49bcdb0ff2f42
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>