fixed resources path and added more comments