Add required functions for the completion library

fixes #34 #35