mior
minor
updated gitignore and added startup.m
refactored mloc and its helper routines