Made lock for multiple processes and made shit more safe in general
Deleted unnecessary comment and lockfile