PERL: Added `mkinput' and adjusted directory hierachy