LPMDformat:
1. Get rid of warning messages about registering by not registering anything
2. Improve/fix documentation string.
3. Option 'e' is now a boolean as "-e 0" didn't actually do anything.
4. Fix memory leak caused by use of 'new'.
5. 'extra' variable replaced by boolean 'charge' for clarity.