Vector and operator valued measures and applications