Added POSCAR reading support
several improvements