updated fundamentals documentation, fixed a few bugs