Reworked up to ASSIGNMAt card
Cleanup and bugfixes
Rework ASSIGNMA, element database; update outputs