corrected script require
created model for recurring payment details and moved around core code