Added credits and some requisite helper functions.
Added credits and some requisite helper functions.