removed main method
added map JavaDoc
added map tests