mapw: better handling of arguments
wattr: test wether the specified window exist or not
improved error messages