Added method logoff

Fix #11
putPage and appendPage can read from stdin

Fix #14