Added location calculation functions. Non-verbose output corresponding to specs. Addtional comments.