Update references and samples, add arg parser