Refactor to allow opts to be specified for attach.local function
gendocs
Bump version to 1.2.0