Added preferences storage, Added last loaded or saved file to input on default, Minor fixes

Version Pre-Alpha 0.5.6