Unit cell forces implemented, misc. bugfixes.