refactored code so that resources are within the src folder. Finished commenting