added comment to RandomString() function and cleaned format a bit