Title: A user's manual for the electromagnetic surface patch code