Export Player function and fix comments