Feature/create copy

Some code cleanup + transactional annotation. If an annotator fails, the compound attribute meta data was not removed.