Corrected some bugs
Added -lpthread flag to compile with Ubuntu 13.04
Included simtype in the simulation results writing.
Small changes in MPI error handling.
Corrects the distribution of neurons caused by rounding errors