Added some error checking and arguments to jsize script