added tons of functions

interface functions, xpbar functions