Namespace all the functions and vars

Including the helper functions such as filter etc. as well as the struct
definitions