added "open" callback
Merge pull request #38 from aramkocharyan/crayon

added "open" callback