Refined morlock code, starting to flesh out the PC-side app