Added 'attr' block format, fixed a bug in block creation