Added logger
Added server api for #41 , fixed sendmap closes #44