Minor fixes

Added support to get more patterns and little fixes like function(())
should be working now correct