Fixing log_prob calculation.

in structure.c:

I had the sum of the logs inside a loop it should not have been in, and I was not scaling them properly by dividing by their sum before taking logs.  Closes issue #1.

in flockture.R

just cleaned up some stuff.  used plyr::count instead of table.