Finished basic map api, added debug info.