Added format check in compression methods. Improved project file.