Cleaned code and added order complete admin opt

- Added missing function scope for code cleanliness & form
- Added support for new admin option for marking an order complete when complete IPN received