Fixed up linear dependency checking, added warnings and errors, basic documentation