Fixed wget app bugs, added test script for phalox.