added debug flag;
syntax convention;
macros for subject-constant;
syntax convention;
code convention;
added example query;
proposed record structure;
Merge pull request #2 from niksu/master

pair programming l33tness