Line format error handler
Added type handling to pagelist command