Reworked certain things, and finish missing functions.
Also added a way to detect non existent files.