Add main function and file-exists check