Changed the license. Fixed an error on the pattern to detect begin blocks. Improved the readme