Javadocs for function and instruction packages

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>