Reformatted/indented source
Restricted scope of variables
Removed emoticons
Refactored
Removed superflous comments
Made registering new priv configurable; fixed timeout value