added Pry. fixed bug in filename regex and subsequent generation