Added some license files. Added a new way to get running path.

Added some license files. Added a new way to get running path.