cleaned up all ubio fxns and stringasfactor fix, closes #290