Fixed manifestCheck function and added it to exports