Updates to documentation; gave files and functions more suitable names.