adding resources and main file