added function docs and missing ;

Signed-off-by: Alexander Knapstein <alexander.knapstein@inspirationlabs.com>