Add detailed script documentation