Added Support for running from .jar Check
Added Code so .jar Files are supported