Added resources and changed source codes