bugs fixed, added more to processing script