made changes as requested by mpdehaan and added code to remove key and cert pem files on removal of meter