change regex for @throws and @return to allow $ but not space
@throws something description
@return somthingwith$ description

Also removed unused variables
Adjust text to test that the spaces infront of custom tags are stripped