implemented create_gist function

first implementation. ( pretty crude )