refactored math
functional long/lat converter
added coastlines iterator
math works, but coastline data has mysterious syntax error
made coastlines a local call
code for layers refactored