added simple test file and updated readme. also module detection using inspect