Lib

Hi,

I made some changes in order to call it from another script.

With best regards gosu