Generic Library for the Moustash Project