Check for valid manifest file format
Fix memory allocation problems
bug fixes