updating version to 1.0.4 and adding loggin functions