Added jar packaging
Improved resource array handling