Finish MasterResource and fix the package name for the main method