Added initial source code from UASParser library