*kinda* fixed several bugs regarding file opening. Added
string.startsWith() function.