Move a lot code into individual files, added strip.lua