Title: Foundations of Reinforcement Learning with Applications in Finance