Fixed fab submit to use origin as the default remote.
Auto country assignment algorithm
Makes code more readable
fixes misc. errors
Fixes exception handling