Change to use REGEX. Added return feature.

Change to using regular expressions to give more flexibility.
Added feature: It gives a @returns {type} Description to the JSDocs