Added inhert function.
Fixed JSHint configuration.
Multiple fixes.
Added tests.