Added install rules.
Added function stubs - been a bit busy, sorry