cleaning up code, and added documents that explains where to find constants