Ignore scratchpad file.
Split into separate files, fix bugs.