neaten up code and output and limit clipboard copy to body