add a check to see if script is null
add some basic usage examples