time signature works. Cleaned up attribute handling.