Removed unnecessary code from perun

* Removed unused functions
* Added placeholder for local var/lock