cleaned up a bit, added sample file format