Added resources
Reformat code