Minor edits and fixed peek() in the Stack implementations throwing NullP...

...ointerException.