Added support for using regular expressions as keys

- Added more error checking;
- Added POD;
Updated README accordingly