Checks if the swid parameter is set

Also now automatically creates paper directory.