added support for bracket syntax
update readme for bracket syntax