changed version info to 1.1dev

Signed-off-by: Nicola Ferralis <feranick@hotmail.com>
cleaning up the code

Signed-off-by: Nicola Ferralis <feranick@hotmail.com>