Added save/load functionality

Began to implement priority system.