Managed to get apiDoc working, need some more tweaking before it can be used.