Custom constructor

Add custom constructor feature
Add function to delete instance