updated and added more comments and doc strings.
also added a basic map.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>