Adding JSDoc comments. General Clean up.