Rename variable to $subform_id for clarity.
Add a subform element option to check edit permission on the main form when adding a subform entry.
Updating text and position of text in the admin UI
Merge pull request #8 from jegelstaff/subform-add-button

Nicely done, especially the backwards compatibility (take note Drupal devs)