Adding comments and combining the main function with run
Added public/uploads to gitignore