PL_get* allocates memory using a buffer, so no need to pass a pointer to an allocated array of chars. Added nice getters for variables.