Fix warnings. Make basic code completion work (currently the completion database will just get bigger and bigger)