-extern int getproto(Window w);
-extern void quit(Arg *arg);
-extern void sendevent(Window w, Atom a, long value);
-extern int xerror(Display *dsply, XErrorEvent *ee);
-
-/* tag.c */
-extern void appendtag(Arg *arg);
-extern void dofloat(Arg *arg);
-extern void dotile(Arg *arg);
-extern void initrregs();
-extern Bool isvisible(Client *c);
-extern Client *getnext(Client *c);
-extern Client *getprev(Client *c);
-extern void replacetag(Arg *arg);
-extern void restack();
-extern void settags(Client *c);
-extern void togglemode(Arg *arg);
-extern void view(Arg *arg);
-extern void toggleview(Arg *arg);
+extern void quit(Arg *arg); /* quit dwm nicely */
+extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */
+extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */
+
+/* manage.c */
+extern void attach(Client *c); /* attaches c to global client list */
+extern void attachstack(Client *c); /* attaches client to stack */
+extern void compileregexps(void); /* initialize regexps of rules defined in config.h */
+extern void detach(Client *c); /* detaches c from global client list */
+extern void detachstack(Client *c); /* detaches client from stack */
+extern void dofloat(void); /* arranges all windows floating */
+extern void dotile(void); /* arranges all windows tiled */
+extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */
+extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */
+extern Client *getclient(Window w); /* return client of w */
+extern void incnmaster(Arg *arg); /* increments nmaster with arg's index value */
+extern Bool isvisible(Client *c); /* returns True if client is visible */
+extern void resizemaster(Arg *arg); /* resizes the master percent with arg's index value */
+extern void restack(void); /* restores z layers of all clients */
+extern void settags(Client *c, Client *trans); /* sets tags of c */
+extern void tag(Arg *arg); /* tags c with arg's index */
+extern void togglefloat(Arg *arg); /* toggles focusesd client between floating/non-floating state */
+extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */
+extern void toggletag(Arg *arg); /* toggles c tags with arg's index */
+extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */
+extern void view(Arg *arg); /* views the tag with arg's index */
+extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */