Implemented textures + several small fix