Fix some memory errors
Smartening up of p_class.txt
Add edit file for effects