added constants, started implementing readfile