Added resource folder, moved code in to src folder.