portability for nixes
general update.
removed dud comments, added some better error messages.