moving into libraries folder for better codeigniter integration