Updates to samples and added type registration