In developing countries road quality is not very good and deteriorates quickly, this makes a system which can detect road irregularities and notify user regarding risky driving in real-time, valuable. Moreover, fleet operators would like to ensure safe trips to their customers. This can be accomplished by tracking and maintaining a history of the driving patterns of the drivers employed by them. Further, individuals would also like to assess their driving style and become safe drivers. In this regard, a cost effective solution for detecting road artifacts as well as tracking the driving behavior of drivers using smartphones has been developed. The solution relies on the sensors installed on the smartphone only thereby making it cost effective. Although the system does not use commercial grade sensors, yet our accuracy numbers indicate that the solution is good enough for commercial deployment.