Added stop and resume functions. More GUI refinements.