Changed op.notify<-true to close(op.notify).
Merge pull request #474 from yifan-gu/close_chan

Changed op.notify<-true to close(op.notify).
split the api
initial split of api and internal types.