Fixed some problems with nil vs emptylist and added a working map to prelude