Added option to update dependencies, and added support for custom main files.