Adding a copyAttrsTo method to consolidate element attribute copying during conversion.

Closes #9