updated readme + some error handling