fix style
fix peek to return rear and not front element
s/undefined/null