Added remaining core functionalities. Selection bug identified.