[feature] [map] add function to get data from key

Some cosmetic fixes also

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>