Added some basic functions and created function for pvpgn commands (#279)