Added exit status to error()
Small fixes and improvements. CONTRIBUTE section created