Some code clean up and added Resources class to manage asset recources