Replaced StateT with ReaderT.
Removed unnecessary liftIO.
Pop is replaced with yield.
Made Netbeans a wrapper of ReaderT.