added lucid template and some comments
modified comment
partial implimentation of purging of instances