finished and tested with all example input files. need to test on aludra