added more fk functionality and converted tabs to spaces for readability in github