Prefixed all exported functions with vr_ and removed dead code