File location and function updates

- Added variables for file names to make it easier to track what's what
- broke out the transfer function and made it uinversal so it can be
used for both machine-->web and web-->machine
- updated some debug comments