Rework

Hi, I found useful your leases parser but I had to make it more general. I have added some needed files (for setup) and removed unnecessary ones. Original functionality remained the same. Merge the changes if you find them useful. Bye, Vasek