Add AutoarCreate boilerplate code

Many lines are copied or modified from AutoarExtract