Added doc strings for all functions