added admin
some modifications
fixed some bugs
added gist